/*
 *接口编写处...
*如果接口需要做Action的权限验证，请在Action上使用属性
*如: [ApiActionPermission("WorkOrder",Enums.ActionPermissionOptions.Search)]
 */
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.AspNetCore.Http;
using VOL.Entity.DomainModels;
using VOL.Product.IServices;
using VOL.Product.IRepositories;

namespace VOL.Product.Controllers
{
    public partial class WorkOrderController
    {
        private readonly IWorkOrderService _service;//访问业务代码
        private readonly IHttpContextAccessor _httpContextAccessor;
        private readonly IWorkOrderRepository _workOrderrepository;

        [ActivatorUtilitiesConstructor]
        public WorkOrderController(
            IWorkOrderService service,
            IHttpContextAccessor httpContextAccessor,
            IWorkOrderRepository workOrderRepository
        )
        : base(service)
        {
            _service = service;
            _httpContextAccessor = httpContextAccessor;
            _workOrderrepository = workOrderRepository;
        }
        ////[Route("getDetailRows"), HttpGet]
        ////public async Task<IActionResult> GetDetailRows(int processline_id)
        //{
        //    //var rows = await _workOrderrepository.FindAsIQueryable(x => x.processline_id == processline_id).ToListAsync();
        //    //return JsonNormal(rows);

        //}
    }
}
